#include "Student.h"
Student::Student(){}
Student::Student(string username, string password)
{
    this->info = nullptr;
    this->username = username;
    this->password = password;
}
// 查看个人信息
bool Student::checkMyInfo()
{
    if (this->info)
    {
        this->info->showAll();
        return true;
    }
    cout << "未获得权限" << endl;
    return false;
}
// info的get/set方法
StudentInfo* Student::getInfo()
{
    return this->info;
}
void Student::setInfo(StudentInfo* si)
{
    this->info = si;
}

// username的get/set方法
string Student::getUsername()
{
    return this->username;
}
void Student::setUsername(string username)
{
    this->username = username;
}

// password的get/set方法
string Student::getPassword()
{
    return this->password;
}
void Student::setPassword(string password)
{
    this->password = password;
}
